package com.example.diarymanger.service;

import com.example.diarymanger.bean.ApiResponse;
import com.example.diarymanger.bean.NoteBean;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NoteService {
    ResponseEntity<ApiResponse> saveNote(NoteBean noteBean);
    ResponseEntity<List<NoteBean>> getNotesByUserId(Long userId);
    NoteBean getNoteByNoteId(Integer noteId);
    boolean updateNote(NoteBean noteBean);
    boolean deleteByNoteId(Integer noteId);
    ResponseEntity<List<NoteBean>> getIsPublicNoteAll();
}
